package com.ysxm.util;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseInfo<T> {
     public static final int  ERROR_CODE=-1;
     public static final int SUCCESS_CODE=0;
     
     private int status;
     private String msg;
     private T data;
     
     public ResponseInfo(){
    	 
     }
     
     public ResponseInfo(int status,String msg){
    	 this.status=status;
    	 this.msg=msg;
     }
     
     public ResponseInfo(int status,String msg,T data){
    	 this.status=status;
    	 this.msg=msg;
    	 this.data=data;
     }

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public static int getErrorCode() {
		return ERROR_CODE;
	}

	public static int getSuccessCode() {
		return SUCCESS_CODE;
	}  
}
